<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection-->
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${notice.gtitle}">标题</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/js/register/jquery-3.1.0.min.js}"></script>
</head>
<style>
    ::-webkit-scrollbar {display:none}/*隐藏横向滚动条但可以滚动*/
</style>
<body contenteditable="false">
<a lay-event="fh" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name))" href="#" style="text-decoration:none">
    <i class="layui-icon"style="font-size: 20px">&#xe65c;</i>
    返回
</a>

<!--内容-->
<h1 style="text-align: center;color: red" th:text="${notice.gtitle}">标题</h1>
<span>
    <h5 style="text-align: center" th:text="${notice.gdate}">2020-6-29</h5>
</span>
<!--<div th:text="${notice.gtext}" disabled="disabled"></div>-->

<textarea readonly="readonly" id="demo" name="a"
          th:text="${notice.gtext}" style="display: none; maxleng:0;"></textarea>

</body>
<script th:src="@{/assets/plugins/jquery/jquery-3.1.0.min.js}"></script>
<script th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:inline="none">

    $("#content").html("")

    //富文本编辑器
    layui.use('layedit', function(){
        var layedit = layui.layedit;
        layedit.build('demo', {
            tool: [
                'strong' //加粗
                ,'italic' //斜体
                ,'underline' //下划线
                ,'del' //删除线
                ,'|' //分割线
                ,'left' //左对齐
                ,'center' //居中对齐
                ,'right' //右对齐
                ,'link' //超链接
                ,'unlink' //清除链接
                ,'face' //表情
                ,'image' //插入图片
                ,'help' //帮助
            ]
        });

        layedit.build('demo'); //建立编辑器
    });

    layui.use('form', function(){
        var form = layui.form;
    });
</script>
</html>